﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;

namespace VMC.Web.Logic
{
    public static class MergeErrors
    {
        public static void MergeServiceErrors(this ModelStateDictionary ModelState, Dictionary<string, string> Errors)
        {
            foreach (KeyValuePair<string, string> error in Errors)
                ModelState.AddModelError(error.Key, error.Value);

        }
    }
}